From 54c880c6117ffbb2cbea46124aba2afc69f08406 Mon Sep 17 00:00:00 2001 From: Magnus Henoch Date: Thu, 23 Nov 2006 08:40:50 +0000 Subject: [PATCH] (url-display-percentage): Only show a message if `url-show-status' is non-nil. --- lisp/url/url-util.el | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lisp/url/url-util.el b/lisp/url/url-util.el index 0aeb141c017..57c0f05661d 100644 --- a/lisp/url/url-util.el +++ b/lisp/url/url-util.el @@ -244,12 +244,13 @@ Will not do anything if `url-show-status' is nil." ;;;###autoload (defun url-display-percentage (fmt perc &rest args) - (if (null fmt) - (if (fboundp 'clear-progress-display) - (clear-progress-display)) - (if (and (fboundp 'progress-display) perc) - (apply 'progress-display fmt perc args) - (apply 'message fmt args)))) + (when url-show-status + (if (null fmt) + (if (fboundp 'clear-progress-display) + (clear-progress-display)) + (if (and (fboundp 'progress-display) perc) + (apply 'progress-display fmt perc args) + (apply 'message fmt args))))) ;;;###autoload (defun url-percentage (x y) -- 2.30.2